import request from "@/utils/request";

import type { CodeResponse } from "@/libcommon/modules/login";

const enum API {
    Code = "/apis/code"
}

export const CodeService = async (email: string,type:string = 'register') => {
    return request.post<any, CodeResponse>(API.Code, {
        email,
        type
    });
}